home *** CD-ROM | disk | FTP | other *** search
- Path: news.sunquest.com!kitk!kitk
- From: kitk@mudshark.sunquest.com (Kit Kauffmann)
- Newsgroups: comp.lang.c++
- Subject: Re: MFC button with bitmap & text
- Date: Wed, 21 Feb 1996 10:02:31
- Organization: Sunquest
- Message-ID: <kitk.2098.000A0B15@mudshark.sunquest.com>
- References: <4gco0i$fmg@daily-planet.execpc.com>
- NNTP-Posting-Host: kkauffma.sunquest.com
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
-
- In article <4gco0i$fmg@daily-planet.execpc.com> manowski@execpc.com (Michael Manowski) writes:
- >From: manowski@execpc.com (Michael Manowski)
- >Subject: MFC button with bitmap & text
- >Date: Tue, 20 Feb 1996 17:04:15 GMT
-
- >I am having problems creating a button with both a bitmap image and
- >text. Does anyone know how this can be accomplished. I have tried to
- >attach a CStatic class to a CButton (|BS_BITMAP) button and this works
- >OK. However, when the button is depressed, the text disappears.
-
- >Any help on this would be greatly appreciated.
- >Thank you
-
- >Michael Manowski
-
- >manowski@mail.execpc.com
- >michael.manowski@midata.com
- >103012.2340@compuserve.com
- >Michael Manowski
- >manowski@mail.execpc.com
-
- I don't think you'll get anywhere combining several controls together on the
- screen, which is what it sounds like you are doing. (?) Windows doesn't cope
- well with overlapping controls, as the window with the focus repaints the
- entire area (painting over other control as you've seen) it 'owns'.
-
- I think the only way you'll get a satisfactory solution is by putting the text
- into the bitmap, if you want the text to be a responsive part of the button.
-
-
- Kit Kauffmann - kitk@mudshark.sunquest.com
- AKA 73363,447 (Compu$erve)
-
- Finger me for my public key
-